getSystemService
open fun <T> getSystemService(@NonNull context: Context, @NonNull serviceClass: Class<T>): T(source)
Return the handle to a system-level service by class.
Return
The service or null if the class is not a supported system service.
Parameters
context
Context to retrieve service from.
serviceClass
The class of the desired service.